package com.yfp.operation.mapper;

import com.yfp.common.core.domain.R;
import com.yfp.operation.domain.PlacementPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yfp.operation.domain.dto.GainPlacementPlanDTO;
import com.yfp.operation.domain.dto.InsertPlacementPlanDTO;
import com.yfp.operation.domain.dto.UpdatePlacementPlanDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【placement_plan】的数据库操作Mapper
* @createDate 2024-06-26 14:06:01
* @Entity domain.com.yfp.operation.PlacementPlan
*/
public interface PlacementPlanMapper extends BaseMapper<PlacementPlan> {


    void add(InsertPlacementPlanDTO insertPlacementPlanDTO);

    PlacementPlan getByPlanIdAndName(@Param("planId") String planId, @Param("planName") String planName);

    List<PlacementPlan> getPlacementPlan(GainPlacementPlanDTO gainPlacementPlanDTO);

    /**
     * 修改计划组
     * @param updatePlacementPlanDTO
     */
    void updatePlan(UpdatePlacementPlanDTO updatePlacementPlanDTO);

    void deleteByPlanId(String planId);

    void updateStatus(@Param("cPlanId") String cPlanId, @Param("status") String status);

    void updatePlanStatus( @Param("status") String status);

    List<String> getplanId();
}




